<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <title>{$seo_title|default=$name}</title>
    <meta name="keywords"  content="{$seo_keywords}">
    <meta name="description"  content="{$seo_description}">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <include file="Public:css" />
</head>
<body>
<div class="wrapper">
	<include file="Public:header" />   
    <div class="pg-opt pin">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <h2>{$name}</h2>
                </div>
            </div>
        </div>
    </div>
<php>
$product=sp_sql_posts("cid:$cat_id;field:post_title,smeta,post_excerpt,tid;");
</php>
    <div class="slice bg-3 animate-hover-slide">
        <div class="w-section inverse work">
            <div class="container">
                
                <div class="row">          
                    <div id="ulSorList">
    				   <foreach name="product" item="vo" key="k">
    				    <php>$pic=json_decode($vo['smeta'],true);</php>
                        <div class="mix category_{$k+1} col-lg-3 col-md-3 col-sm-6" data-cat="1">
                            <div class="w-box inverse">
                                <div class="figure">
                                    <img alt="" src="__UPLOAD__{$pic.thumb}"  class="img-responsive">
                                    <div class="figcaption bg-2"></div>
                                    <div class="figcaption-btn">
                                        <a href="__UPLOAD__{$pic.thumb}" class="btn btn-xs btn-one theater"><i class="fa fa-plus-circle"></i> 大图</a>
                                        <a href="{:u('article/index',array('id'=>$vo['tid']))}" class="btn btn-xs btn-one"><i class="fa fa-link"></i> 详细</a>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-9">
                                        <h2>{$vo.post_title}</h2>
                                        <small>{$vo.post_excerpt}</small>
                                    </div>
                                    
                                </div>
                            </div>
                        </div>
                       </foreach>
                        
                        <div class="gap"></div>
                    </div>
                                    
                </div>
            </div>
        </div>
    </div>
    
    <include file="Public:footer" />
    
</div>

<!-- JavaScript -->
<include file="Public:scripts" />

</body>
</html>